package br.com.playonline.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import br.com.playonline.bussines.MailBU;
import br.com.playonline.dto.UsuarioDTO;

@RestController
@RequestMapping(value = "/mail")
public class MailRest {

	@Autowired
	MailBU mailBU;
	
	@RequestMapping(value = "/sendBoasVindasNovoUsuario",method = RequestMethod.POST)
	public @ResponseBody void sendBoasVindasNovoUsuario(@RequestBody UsuarioDTO usuarioDTO){
		this.mailBU.sendBoasVindasNovoUsuario(usuarioDTO);
	}
	
}
